package com.guomei.bean.work.domain;

import java.time.LocalDateTime;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;

@Data
public class Work {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    // 名称
    private String name;

    private String cover;
    private String video;

    private Long userId; // sql: user_id
    private String tag; // 
    private boolean isWinner; // sql: is_winner

    // 状态(0-草稿,1-已发布,2-下架)
    private Short status;

    // 描述
    private String description;

    // 内容
    private String content;

    private LocalDateTime createdTime;
    private LocalDateTime updatedTime;

    private Integer viewCount;
    private Integer likeCount;
    private Integer commentCount;
}
